package com.softWang.system.controller.vo.systemDictData;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Data
public class SystemDictDataAddParam {

    @ApiModelProperty(value = "字典类型id")
    @NotNull(message = "dictId不能为空")
    private Long dictTypeId;

    @ApiModelProperty(value = "显示标签，长度为60")
    @NotBlank(message = "label不能为空")
    @Size(max = 60,message="label长度为60")
    private String label;


    @ApiModelProperty(value = "字典值，长度为60")
    @NotBlank(message = "value不能为空")
    @Size(max = 60,message="value长度为60")
    private String value;

    @ApiModelProperty(value = "字典排序，排序越小越靠前")
    @NotNull(message = "sort不能为空")
    private Integer sort;

}